package com.demo.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : YU.TAN
 * @date : 2021/8/26 10:30
 */
@Configuration
public class MyBatisPlusConfig {
    @Bean("plusPaginationInterceptor")
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
